package com.matea.order.controller;

import com.matea.order.config.GirlConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Matea on 2019/1/26.
 */
@RestController
public class GirlController {

    @Autowired
    private GirlConfig girlConfig;

    @GetMapping("/girl/print")
    public  String print(){
        return  "name:"+girlConfig.getName()+" age:"+girlConfig.getAge();

    }
}
